/**
 * 给定小数点和数字构造的串，要求分割成合法的数，使和最大
 * 贪心即可。小数点只取一位。
 */
#include <bits/stdc++.h>
using namespace std;

#include <bits/extc++.h>
using namespace __gnu_pbds;

using Real = long double;
using llt = long long;
using pii = pair<int, int>;
using vi = vector<int>;
using vvi = vector<vi>;

string S;

Real proc(){
    int n = S.length();
    int k = 0;

    Real ans = 0;
    while(1){
        int o = 0;
        llt tmp = 0;
        while(k + o < n and S[k + o] != '.'){
            tmp = tmp * 10 + (S[k + o] - '0');
            ++o;
        }
        ans += tmp;
        if(k + o == n) break;
        k += o;
        ++k;
        ans += (S[k] - '0') * 0.1;
        ++k;
    }
    return ans;
}

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(0);
    int nofkase = 1;
    // cin >> nofkase;
    while(nofkase--){
        cin >> S;
        cout << fixed << setprecision(1) << proc() << endl;
    }
    return 0;
}